package com.woniu.user.pojo;

import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 地址表
 * </p>
 *
 * @author hushunlai
 * @since 2023-05-22
 */
@Getter
@Setter
@TableName("t_address")
@ApiModel(value = "Address对象", description = "地址表")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("ID")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("手机号码")
      private String mobile;

      @ApiModelProperty("收货人姓名")
      private String name;

      @ApiModelProperty("省")
      private String province;

      @ApiModelProperty("市")
      private String city;

      @ApiModelProperty("区")
      private String county;

      @ApiModelProperty("详细收货地址")
      private String detail;

      @ApiModelProperty("地区编码")
      private String areaCode;

      @ApiModelProperty("邮政编码")
      private String postalCode;

      @ApiModelProperty("是否默认地址")
      private Byte isDefault;

      @ApiModelProperty("逻辑删除")
      @TableLogic
      private Byte isDeleted;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
}
